import QtQuick 2.0

Item {
    width: 120
    height: 10
    Text {
        id: txt
        color: "gray"
        font.bold: true
        font.pixelSize: 18
        font.family: "JetBrains Mono NL"
        text: "Hello World"
        style: Text.Outline // 文本风格
        styleColor: "azure"
        elide: Text.ElideRight // 省略规则
        wrapMode: Text.WordWrap // 换行规则
        horizontalAlignment: Text.AlignVCenter // 文本在元素内部对齐
    }
}
